'''
 unittest.skip(reason) 无条件直接跳过测试
 unittest.skipIf(condition,reason) 条件为真，跳过测试
 unittest.skipUnless(condition,reason) 条件为假，跳过测试
 unittest.expectedFailure() 预期设置失败

重点掌握：unittest.skip(reason)
'''
import unittest


class Test2(unittest.TestCase):
    @unittest.skipIf(2 < 3, '条件为真,暂时跳过这条')
    def test4(self):
        print('44444444444444')

    @unittest.skip('有BUG,暂时跳过这条')
    def test3(self):
        print('33333333333333')


class Test1(unittest.TestCase):
    @unittest.skipUnless(2 > 3, '条件为假,暂时跳过这条')
    def test2(self):
        print('22222222222')

    @unittest.expectedFailure
    def test1(self):
        print('111111111111')
        self.assertEqual(1, 1)


if __name__ == '__main__':
    unittest.main()
